<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2018/5/3
  Time: 14:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="pageHeader">
    <form rel="pageForm" onsubmit="return navTabSearch(this);" action="<c:url value='/danger/wzzj/wzzjlist'/>" method="post">
        <input type="hidden" name="wzzjlb" value="1"/>
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td><a href="<c:url value='/danger/wzzj/editWzzj'/>?type=1" target="dialog"  mask="true" resizable="false" width="400" height="500" title="约谈记录" rel="page_info_detail"><input type="button" value=" 新增约谈记录"/></a></td>
                    <td>区：</td>
                    <td>
                        <select class="combox" name="fjid" ref="ytjdsel" refUrl="<c:url value="/danger/jl"/>?fjid={value}" >
                            <option value="" <c:if test="${query.data.fjid eq '' || query.data.fjid eq null}">selected</c:if>>请选择</option>
                            <c:forEach var="dicone" items="${dicone}">
                                <option value="${dicone.id}" <c:if test="${dicone.id eq query.data.fjid}">selected</c:if>>${dicone.name}</option>
                            </c:forEach>
                        </select>
                    </td>
                    <td> 街道：</td>
                    <td>
                        <select class="combox" name="pcsid" id="ytjdsel" ref="ytsqsel" refUrl="<c:url value="/danger/jl"/>?pcsid={value}" >
                            <option value="" <c:if test="${query.data.pcsid eq '' || query.data.pcsid eq null}">selected</c:if>>请选择</option>
                            <c:forEach var="dictwo" items="${dictwo}">
                                <option value="${dictwo.id}" <c:if test="${dictwo.id eq query.data.pcsid}">selected</c:if>>${dictwo.name}</option>
                            </c:forEach>
                        </select>
                    </td>
                    <td> 社区：</td>
                    <td>
                        <select class="combox" name="sqid" id="ytsqsel">
                            <option value="" <c:if test="${query.data.sqid eq '' || query.data.sqid eq null}">selected</c:if>>请选择</option>
                            <c:forEach var="dicthree" items="${dicthree}">
                                <option value="${dicthree.id}" <c:if test="${dicthree.id eq query.data.sqid}">selected</c:if>>${dicthree.name}</option>
                            </c:forEach>
                        </select>
                    </td>
                    <td class="dateRange">
                        时间：
                        <input type="text" value="<fmt:formatDate value="${query.start}" pattern="yyyy-MM-dd"/>" readonly="readonly"
                               class="date" name="start" dateFmt="yyyy-MM-dd" style="width: 100px;">
                        <span class="limit">-</span>
                        <input type="text" value="<fmt:formatDate value="${query.end}" pattern="yyyy-MM-dd"/>" readonly="readonly"
                               class="date" name="end"  dateFmt="yyyy-MM-dd" style="width: 100px;">
                    </td>
                    <td>
                        <div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div>
                    </td>
                </tr>

            </table>
        </div>
    </form>
</div>
<div class="pageContent">
    <table class="table" width="100%" layoutH="86">
        <thead>
        <tr>
            <th width="40"  align="center">序号</th>
            <th width="120"  align="center">区</th>
            <th width="120" align="center">街道</th>
            <th width="120" align="center">社区</th>
            <th width="120" align="center">时间</th>
            <th width="150"  align="center">负责人姓名</th>
            <th width="150"  align="center">负责人职务</th>
            <th width="120"  align="center">约谈事由</th>
            <th width="120"  align="center">操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${pager.list}" var="list" varStatus="state" >
            <tr>
                <td>${state.count+(pager.pageNum-1)*pager.numPerPage}</td>
                <td>${list.fjid}</td>
                <td>${list.pcsid}</td>
                <td>${list.sqid}</td>
                <td><fmt:formatDate value="${list.ytsj}" pattern="yyyy-MM-dd"/></td>
                <td>${list.fzrxm}</td>
                <td>${list.fzrzw}</td>
                <td>${list.ytsy}</td>
                <td>
                    &nbsp;
                    <a href="<c:url value='/danger/wzzj/editWzzj'/>?type=1&id=${list.id}" target="dialog" mask="true" resizable="false"
                       width="400" height="500" title="编辑" rel="page_info_detail">编辑&nbsp;</a>
                    <a href="<c:url value='/danger/wzzj/deleteWzzj'/>?type=1&id=${list.id}"
                    target="ajaxDel" title=" 确定删除吗?" callback="delcallback">删除&nbsp;</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20" <c:if test="${pager.numPerPage ==20}" >selected="selected"</c:if>>20</option>
                <option value="50" <c:if test="${pager.numPerPage ==50}" >selected="selected"</c:if>>50</option>
                <option value="100" <c:if test="${pager.numPerPage ==100}" >selected="selected"</c:if>>100</option>
                <option value="200" <c:if test="${pager.numPerPage ==200}" >selected="selected"</c:if>>200</option>
            </select>
            <span>条，共${pager.total}条</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount="${pager.total}" numPerPage="${pager.numPerPage}" pageNumShown="10" currentPage="${pager.pageNum}"></div>
    </div>
</div>
<script type="text/javascript">
    function delcallback(resp, st, xhr) {
        if (resp && resp.succ) {
            alertMsg.info(resp.msg);
            //$.pdialog.closeCurrent();
            // $.pdialog.close("page_per_party_deteil");
            navTab.reloadFlag('page_yt_index');
        } else {
            alertMsg.info(resp.msg);
        }
    }
</script>
</body>
</html>
